//
//  OYActionSheet.h
//  qpyd
//
//  Created by 掌游网络 on 2017/7/20.
//  Copyright © 2017年 掌游网络. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 block回调
 
 @param index 被点击按钮标识,取消: 0, 警示按钮: -1, 其他(从上往下): 1.2.3...
 */
typedef void(^OYActionSheetBlock)(NSInteger index);

@interface OYActionSheet : UIView

/**
 创建LPActionSheet对象

 @param title 提示文本
 @param cancelButtonTitle 底部取消按钮文本
 @param destructiveButtonTitle 警示按钮文本
 @param otherButtonTitles 其他按钮文本
 @param actionSheetBlock block回调
 @return OYActionSheet对象
 */
- (instancetype)initWithTitle:(NSString *)title
            cancelButtonTitle:(NSString *)cancelButtonTitle
       destructiveButtonTitle:(NSString *)destructiveButtonTitle
            otherButtonTitles:(NSArray *)otherButtonTitles
                      handler:(OYActionSheetBlock)actionSheetBlock NS_DESIGNATED_INITIALIZER;

- (void)show;

@end
